﻿using FluentNHibernate.Mapping;

namespace Business.Entity.Contabil.Pessoa.SubClass.Usuario.ClassesRelacionadas
{
    public class PermissaoFormMap :ClassMap<PermissaoForm>
    {
        public PermissaoFormMap()
        {
            Id(x => x.Id).Not.Nullable().Unique().GeneratedBy.Sequence("sqPermissaoForm");

            Map(x => x.PermissaoAcesso);
            Map(x => x.PermissaoDelete);
            Map(x => x.PermissaoInsert);
            Map(x => x.PermissaoSelect);
            Map(x => x.PermissaoUpdate);

            References(x => x.Formulario).Not.Nullable();
        }
    }
}
